package com.wjq.mapper;


import com.wjq.DTO.ChoiceDTO;
import com.wjq.entity.Choice;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface ChoiceMapper {

    Choice selectChoiceById(Integer id);//获得单个选项

    List<Choice> queryChoiceList(Integer question_id);//获得某个问题所有选项

    void updateChoice(Choice Choice);

    void deleteChoiceById(Integer id);

    void addChoice(Choice choice);

    List<ChoiceDTO> selectQChoiceById(Integer id);

}
